package app.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestContextHolder;

/**
 * User: landy
 * Date: 15/4/26
 * Time: 上午10:27
 */
@RestController
@RequestMapping
public class IndexController {
    @RequestMapping({"", "index"})
    public String index() {
        RequestContextHolder.getRequestAttributes();
        return "hello world !!!! 你好!!!";
    }

    public String home() {
        return "hello";
    }
}
